package com.spzx.test1;

public class Test {
    public static void main(String[] args) {
        Cook cook = new Cook();
        new Thread(()->{
            for (int i = 0; i < 10; i++) {
                cook.cut();
            }
        },"切菜").start();
        new Thread(()->{
            for (int i = 0; i < 10; i++) {
                cook.cook();

            }
        },"炒菜").start();
        new Thread(()->{
            for (int i = 0; i < 10; i++) {
                cook.give();
            }
        },"上菜").start();
    }
}
